<div class="layui-form-item">
    <label class="layui-form-label">{$value['desc']|default=''}</label>
    <div class="layui-input-block">
        {foreach $value['option'] as $key=>$vo}
        {if $value['dimension']==0}
        {if in_array($vo,$value['value'])}
        {if $value['value']==''}
        <input name="{$value['name']}[]" value="{$vo}" type="checkbox" title="{$vo}">
        {else}
        <input name="{$value['name']}[]" value="{$vo}" type="checkbox" title="{$vo}" checked="">
        {/if}

        {else}
        <input name="{$value['name']}[]" value="{$vo}" type="checkbox" title="{$vo}">
        {/if}
        {elseif $value['dimension']==1}
            {if in_array($key,$value['value'])}
                    {if $value['value']==0}
                    <input name="{$value['name']}[]" value="{$key}" type="checkbox" title="{$vo}"  checked="">
                    {else}
                    <input name="{$value['name']}[]" value="{$key}" type="checkbox" title="{$vo}">
                    {/if}

            {else}
                <input name="{$value['name']}[]" value="{$key}" type="checkbox" title="{$vo}">
            {/if}
        {elseif $value['dimension']==2}
            {if in_array($vo[$value['choice']],$value['value'])}
                <input name="{$value['name']}[]" value="{$vo[$value['choice']]}" type="checkbox" title="{$vo[$value['title']]}"  checked="">
            {else}
                <input name="{$value['name']}[]" value="{$vo[$value['choice']]}" type="checkbox" title="{$vo[$value['title']]}">
            {/if}
        {/if}
        {/foreach}
        <div><tip>{$value['tagging']|default=''}</tip></div>
    </div>
</div>